#ifndef _STREAM_OPEN_H
#define _STREAM_OPEN_H

void stream_component_close(VideoState *is, int stream_index);

/* open a given stream. Return 0 if OK */
int stream_component_open(VideoState *is, int stream_index);
int stream_has_enough_packets(AVStream *st, int stream_id, PacketQueue *queue);
void stream_seek(VideoState *is, int64_t pos, int64_t rel, int seek_by_bytes);
void stream_close(VideoState *is);
VideoState *stream_open(const char *filename, AVInputFormat *iformat);


#endif
